<?php

namespace Keio\StudyBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Card
 */
class Card
{
    /**
     * @var integer
     */
    private $id;

    /**
     * @var string
     */
    private $code;

    /**
     * @var integer
     */
    private $serial;

    /**
     * @var integer
     */
    private $xuatkho;

    /**
     * @var integer
     */
    private $danap;

    /**
     * @var \Keio\StudyBundle\Entity\Package
     */
    private $package;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set code
     *
     * @param string $code
     * @return Card
     */
    public function setCode($code)
    {
        $this->code = $code;
    
        return $this;
    }

    /**
     * Get code
     *
     * @return string 
     */
    public function getCode()
    {
        return $this->code;
    }

    /**
     * Set serial
     *
     * @param integer $serial
     * @return Card
     */
    public function setSerial($serial)
    {
        $this->serial = $serial;
    
        return $this;
    }

    /**
     * Get serial
     *
     * @return integer 
     */
    public function getSerial()
    {
        return $this->serial;
    }

    /**
     * Set xuatkho
     *
     * @param integer $xuatkho
     * @return Card
     */
    public function setXuatkho($xuatkho)
    {
        $this->xuatkho = $xuatkho;
    
        return $this;
    }

    /**
     * Get xuatkho
     *
     * @return integer 
     */
    public function getXuatkho()
    {
        return $this->xuatkho;
    }

    /**
     * Set danap
     *
     * @param integer $danap
     * @return Card
     */
    public function setDanap($danap)
    {
        $this->danap = $danap;
    
        return $this;
    }

    /**
     * Get danap
     *
     * @return integer 
     */
    public function getDanap()
    {
        return $this->danap;
    }

    /**
     * Set package
     *
     * @param \Keio\StudyBundle\Entity\Package $package
     * @return Card
     */
    public function setPackage(\Keio\StudyBundle\Entity\Package $package = null)
    {
        $this->package = $package;
    
        return $this;
    }

    /**
     * Get package
     *
     * @return \Keio\StudyBundle\Entity\Package 
     */
    public function getPackage()
    {
        return $this->package;
    }
}